﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class appleader_level_selectpro : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request["userid"] != null)
            {
                MasApp.Model.userrole ur = new MasApp.Model.userrole();
                ur.Userid = int.Parse(Request["userid"].ToString());
                ur.Userroleid = 8;
                MasApp.Model.levelmission lm = new MasApp.Model.levelmission();
                lm.Actor = Session["username"].ToString();
                lm.Projectid = int.Parse(Session["currentprojectid"].ToString());
                lm.State = "未做的";
                lm.Levelmissionid = MasApp.BLL.reg.AddExpert(lm, ur);
                if (lm.Levelmissionid > 0)
                {
                    MasApp.BLL.ResponseHelper.alert("您已经选择此用户为当前项目的评级专家（评估员）", "prolist.aspx");
                }
            }
            else
            {
                MasApp.BLL.ResponseHelper.alert("非法链接", "prolist.aspx");
            }
        }
    }
}
